/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *																 *
 *	r2GL - r2 Graphs Library									 *
 *																 *
 *	File:		EuclideanNode.cpp								 *
 *	Authors:	Rafael Kikuchi ( shinjikik@gmail.com )			 *
 *				Rafael Romeiro ( rafaelromeiro@gmail.com )		 *
 *	Date:		29/11/2008										 *
 *	License:	CC-GNU LGPL										 *
 *				http://creativecommons.org/licenses/LGPL/2.1/	 *
 *	Version:	0.1.0											 *
 *																 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#include "EuclideanNode.h"

namespace r2GL
{

EuclideanNode::EuclideanNode (void)
{
}

EuclideanNode::EuclideanNode (int initialID)
{
	id = initialID;
	degree = 0;
	outDegree = 0;
}

float EuclideanNode::X (void)
{
	return position[0];
}

float EuclideanNode::Y (void)
{
	return position[1];
}

void EuclideanNode::X (float posX)
{
	position[0] = posX;
}

void EuclideanNode::Y (float posY)
{
	position[1] = posY;
}

} // namespace